package com.cd.common.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.Map;

/**
* @description 字典类型表 ||  || 
* @author admin
* @date 2024-03-25
*/
@Entity
@Data
@Table(name = "sys_dict_type",
        uniqueConstraints = @UniqueConstraint(name = "dict_type", columnNames = "dict_type")
)
public class SysDictType implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    //@Comment("字典主键")
    @Column(name = "dict_id", nullable = false )
    @GeneratedValue
    private Long dictId;

    //@Comment("字典名称")
    @Column(name = "dict_name" )
    private String dictName;

    //@Comment("字典类型")
    @Column(name = "dict_type", unique = true )
    private String dictType;

    //@Comment("状态（0正常 1停用）")
    @Column(name = "status" )
    private String status;

    //@Comment("创建者")
    @Column(name = "create_by" )
    private String createBy;

    //@Comment("创建时间")
    @Column(name = "create_time" )
    private Date createTime;

    //@Comment("更新者")
    @Column(name = "update_by" )
    private String updateBy;

    //@Comment("更新时间")
    @Column(name = "update_time" )
    private Date updateTime;

    //@Comment("备注")
    @Column(name = "remark" )
    private String remark;

    @Transient
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;


}

